#ifndef LOADING_H
#define LOADING_H

#include <QWidget>

class Loading : public QWidget
{
    Q_OBJECT
public:
    explicit Loading(QWidget *parent = nullptr);

signals:
protected:
    void paintEvent(QPaintEvent* event);

private:
    QPixmap m_bk;  // 背景图 只是为了显示就用QPixmap，效率更高
    QPixmap m_progress; //进度条
    int m_dist = 15; //进度条默认宽度
};

#endif // LOADING_H
